{include file='header.tpl'}
<div id="friends">
<h2>我的好友</h2>
{if $count1 == 0}
<p>没有找到</p>
{else}
<div class="lists">

{foreach from=$friends item=friend}
<dl>
        <dt>好友名：<a href="{geturl route='space' username=$friend.username}">{$friend.username}</a> |
                                          加入时间：{$friend.regtime|date_format:'%Y-%m-%d %H:%M'}</dt>
        <dd><a href="{geturl action='operate'}?action=del&id={$friend.userid}">解除关系</a></dd>
</dl>
{/foreach}

</div>
{/if}
</div>
<div id="friendsTobe">
<h2>等待对方验证的好友</h2>
{if $count2 == 0}
<p>没有找到</p>
{else}
<div class="lists">
{foreach from=$friendsTobe item=friend}
<dl>
        <dt>好友名：<a href="{geturl route='space' username=$friend.username}">{$friend.username}</a> |
                                         注册时间：{$friend.regtime|date_format:'%Y-%m-%d %H:%M'}</dt>
</dl>
{/foreach}
</div>
{/if}
</div>

<div id="tobefriends">
<h2>等待你验证的好友</h2>
{if $count3 == 0}
<p>没有找到</p>
{else}
<div class="lists">

{foreach from=$tobefriends item=friend}
<dl>
        <dt>好友名：<a href="{geturl route='space' username=$friend.username}">{$friend.username}</a> |
                                          加入时间：{$friend.regtime|date_format:'%Y-%m-%d %H:%M'}</dt>
        <dd><a href="{geturl action='operate'}?action=status&id={$friend.userid}">同意</a> |
        <a href="{geturl action='operate'}?action=del&id={$friend.userid}">不同意</a></dd>
</dl>
{/foreach}

</div>
{/if}
</div>
{include file='footer.tpl'}